/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.com.s21.poo.dao;

import ar.com.s21.poo.exception.GestionarException;
import java.sql.SQLException;

/**
 *
 * @param <T> 
 * @author Other
 */
public interface GenericDAO<T> {
    
    /**
     *
     * @param t
     * @return
     * @throws SQLException
     * @throws GestionarException
     */
    boolean add(T t) throws SQLException, GestionarException;
    
    /**
     *
     * @param t
     * @throws SQLException
     * @throws GestionarException
     */
    void update(T t) throws SQLException, GestionarException;
    
    /**
     *
     * @param t
     * @return
     * @throws SQLException
     */
    boolean delete(T t)throws SQLException;
        
    
}
